export const getLoginState = (data) => {
    return {
        type: ActionTypes.LOGIN.getLoginState,
        payload:data
    }
}

export const requestGetData = () => {
    return (dispatch, getState) => {

        let state = getState();
        let data={
            
        }
        return Invoke.login.getLogin(data)
            .then(reply => {
                //debugger;
                dispatch(getLoginState(reply.rescode))
                if(reply.rescode==1){
                   location.hash="login"
                }
               
                
            })
            .catch(err => {

            })
            .finally(() => {
               
            })

    }
}